package com.sls.game.dao.xinhe.impl;

import org.springframework.stereotype.Repository;

import com.sls.game.dao.impl.SuperDAO;
import com.sls.game.dao.xinhe.XinHeCompanyDAO;
import com.sls.game.pojo.xinhe.Company;

@Repository("xinHeCompanyDAO")
public class XinHeCompanyDAOImpl extends SuperDAO<Company> implements
		XinHeCompanyDAO {

	@Override
	public void insert(Company company) {
		this.getSqlSession().insert("mybatis.xml.XinHeCompanyMapper.insert",
				company);
	}

	@Override
	public void update(Company company) {
		this.getSqlSession().insert("mybatis.xml.XinHeCompanyMapper.update",
				company);
	}

	@Override
	public Company queryById(String id) {
		return this.getSqlSession().selectOne("mybatis.xml.XinHeCompanyMapper.queryById",
				id);
	}

}
